package com.versiFramework.controller.utils
{ 
	public class observer 
	{ 
		private var _handler:Function;
		private var _initialized:Boolean = false;
		public function set handler(call:Function):void
		{
			_handler=call;
			_initialized = true;
		} 
		
		public function get handler():Function
		{
			return _handler;
		} 
	 	
	 	public function observer():void
	 	{
	 		
	 	}
	 	
		public function set value(value:*):void 
	  	{ 
	        if (_initialized) handler.call(); 
	  	} 
	} 
}